import People from "../pages/people/people";
import Machine from "../pages/machine/machine";
import Order from "../pages/order/Order";
import Verify from "../pages/order/Verify";
import Sys from "../pages/sys/Sys";
import Admin from '../pages/admin/admin'
import Task from '../pages/task/task'
import Record from '../pages/record/record'
import Farmland from "../pages/farmland/farmland";
import News from "../pages/news/news";
import BonusPool from "../pages/bonusPool/bonusPool";
import Withdrawal from '../pages/people/withdrawal'
import Recharge from '../pages/people/recharge'
import Address from "../pages/address/address";
import Ad from "../pages/ad/ad.jsx";
import Bonus from "../pages/bonus/bonus";

export const myRoutes = [
  {
    name: '策略管理',
    children: [
      {
        name: '策略1',
        path: '/strategy',
        component: Task
      }
    ]
  },
  {
    name: '会员管理',
    children: [
      {
        name: '会员',
        path: '/user',
        component: People
      },
      {
        name: '充值记录',
        path: '/record',
        component: Record
      },
      {
        name: '充值申请',
        path: '/recharge',
        component: Recharge
      },
      {
        name: '提现申请',
        path: '/withdrawal',
        component: Withdrawal
      }
    ]
  },
  {
    name: '矿机管理',
    children: [
      {
        name: '矿场管理',
        path: '/farmland',
        component: Farmland
      },
      {
        name: '矿机管理',
        path: '/machine',
        component: Machine
      },
      {
        name: '订单审核',
        path: '/verify',
        component: Verify
      },
      {
        name: '订单管理',
        path: '/order',
        component: Order
      }
    ]
  },
  {
    name: '分销管理',
    children: [
      {
        name: '奖金池',
        path: '/bonusPool',
        component: BonusPool
      },
      {
        name: '分红',
        path: '/bonus',
        component: Bonus
      }
    ]
  },
  // {
  //   name: '机器人充值',
  //   children: []
  // },
  {
    name: '新闻管理',
    children: [
      {
        name: '新闻管理',
        path: '/news',
        component: News
      }
    ]
  },
  {
    name: '系统管理',
    children: [
      {
        name: '系统配置',
        path: '/sysconfig',
        component: Sys
      },
      {
        name: '充币地址',
        path: '/address',
        component: Address
      },
      {
        name: '管理员',
        path: '/admin',
        component: Admin
      },
      {
        name: '版本管理',
        path: '/ad',
        component: Ad
      }
    ]
  }
]
